onWatchEvent

Arguments

eobject

An object that has the following properties:

typestring

The type of watch event that has been fired. It will be one of the following values: 'show/hide', 'show/hideTabPane', 'enable', 'enableTabPane', or 'readonly'.

controlstring

The name of the control that the watch event applies to.

flagboolean

The result of the expression evaluated by the watch event. Can be true or false.

Description

Fires when a client-side watch event in the UX Component is executed.

Discussion

The onWatchEvent fires when any of the client-side watch events (show/hide, enable, readOnly) fires. For example, when a client-side show/hide expression on a control is executed the event is fired. The type of event, the name of the control on which the expression is being evaluated and the result of the expression are passed into the event handler.

Possible values for the type parameter passed to the event handler are:

  • show/hide
  • show/hideTabPane
  • enable
  • enableTabPane
  • readonly